/**
 * 对应管理员端统计分析模块
 */

package xiangmu.schoolpaper.controller.system;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import xiangmu.schoolpaper.pojo.DTO.KeywordsQuery;
import xiangmu.schoolpaper.result.Result;
import xiangmu.schoolpaper.service.impl.system.GetTeachersServiceImpl;
import xiangmu.schoolpaper.service.impl.teacher.TemplateTypesServiceImpl;
import xiangmu.schoolpaper.service.system.GetTeachersService;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/system/get")
@Tag(name="查看所有指导教师接口")
public class GetTeachersController {


    @Autowired
    private GetTeachersService getTeachersService;


    @GetMapping("/getAllTeachers")
    @Operation(summary = "获取所有指导教师的名字")
    public Result getAllTeachers(){
        log.info("获取所有指导教师的名字");
        List<String> list = getTeachersService.getAllTeachers();
        return Result.success(list);
    }

}
